package com.anivia.system.auth.model.dto;

import com.anivia.common.core.enums.PlatformTypeEnum;
import com.anivia.system.auth.enums.LoginTypeEnum;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 用户基础信息
 * </p>
 *
 * @author wangj
 * @since 2024-04-02
 */
@Getter
@Setter
@TableName("user_info")
public class UserInfoLoginDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 手机号
     */
    @Schema(description = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;
    /**
     * 密码
     */
    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 登录方式
     */
    @Schema(description = "登录方式")
    @NotNull(message = "登录方式不能为空")
    private LoginTypeEnum loginType;
    /**
     * 登录端
     */
    @Schema(description = "登录端")
    @NotNull(message = "登录端不能为空")
    private PlatformTypeEnum userType;
}
